package com.xszx.entity.dto.goods;

import java.io.Serializable;
import java.util.Objects;

/**
 * 封装删除货物请求参数
 * 根据id删除
 */
public class GoodsDeleteRequest implements Serializable {
    /**
     * 货物id
     */
    private Integer gid;

    private static final long serialVersionUID = 1L;

    public GoodsDeleteRequest() {
    }

    public GoodsDeleteRequest(Integer gid) {
        this.gid = gid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    @Override
    public String toString() {
        return "GoodsDeleteRequest{" +
                "gid=" + gid +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        GoodsDeleteRequest that = (GoodsDeleteRequest) o;
        return Objects.equals(gid, that.gid);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(gid);
    }
}
